clear;clc;
%% create session, connect devices
session=MeasurementSession.SimpleMeasurement([Constant.AutoMeasurementRootPath '/Application/Absorption/device.dat']);
% session.getAllDevicesInBase('session');

%% Device Settings

zi = session.getDevice('dev3543');
laser = session.getDevice('toptica64');

scanVolt = 70:0.1:95;

data = cell(size(scanVolt));
for idx = 1:length(scanVolt)
    laser.setScanOffsetVolt( scanVolt(idx) );
    pause(1);
    data{idx} = zi.pollData();
end
    
